/*
* Class: RssReaderApp
* Description: Main class creates an RssReaderFrame to start the program
*
* Note:
* Date: March 28, 2012
* Author: Shane Swayney
*/
package rssreaderapp;

import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import static java.awt.GraphicsDevice.WindowTranslucency.*;
import javax.swing.JFrame;

/**
 *Main Class RssReaderApp creates an RssReaderFrame to start programe ui. 
 * 
 * @author Shane Swayney
 */
public class RssReaderApp {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
        // Determine if the GraphicsDevice supports translucency.
        GraphicsEnvironment graphInv = GraphicsEnvironment.getLocalGraphicsEnvironment();
        GraphicsDevice graphDev = graphInv.getDefaultScreenDevice();
 
        //If translucent windows aren't supported, exit.
        if (!graphDev.isWindowTranslucencySupported(TRANSLUCENT)) {
            System.err.println("Translucency is not supported: JDK 7.0 or above needed");
                System.exit(0);
        }
        
        //JFrame.setDefaultLookAndFeelDecorated(true);
        

        
        java.awt.EventQueue.invokeLater(new Runnable() {
            @Override
            public void run() {
                new RssReaderFrame().setVisible(true);
                
            }
        });
    }
}
